<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<div class="table-responsive">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th class="text-center"><div class="table-first-id">序号</div></th>
            <th class="text-center" width="25%">推荐位置</th>
            <th class="text-center" width="10%">最多显示数量</th>
            <th class="text-center" width="25%">最近更新时间</th>
            <th class="text-center" width="10%">状态</th>
            <th class="text-center" width="25%">操作</th>
        </tr>
        </thead>
    </table>
    <div class="J_V_tabContent table-xScrollWrap">
        <table class="table table-bordered table-hover table-xs-content">
            <tbody id="tbodyGroomPlace">
            <tr class="jqgfirstrow" role="row">
                <th class="text-center"><div class="table-first-id">&nbsp;</div></th>
                <th class="text-center" width="25%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="25%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="25%">&nbsp;</th>
            </tr>
            <tr th:if="${#lists.isEmpty(dataMap['list'])}">
                <td colspan="6" class="text-center">
                    <div class="noDataTipsBox">
                        <p><span class="c-4e fs16">亲，还没有数据~~~</span></p>
                    </div>
                </td>
            </tr>

            <tr th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="groomPlace:${dataMap['list']}" th:attr="data-id=${groomPlace['id']}">
                <td class="text-center">
                    <input type="checkbox" class="i-checks" th:attr="data-id=${groomPlace['id']}"   th:value="${groomPlace['id']}"  name="groomPlaceId">
                </td>
                <td class="text-center" th:text="${groomPlace['placeName']}">
                </td>
                <td class="text-center" th:text="${groomPlace['groomNum']}">
                </td>
                <td class="text-center" th:text="${#strings.substring(groomPlace['updateTime'],0,16)}">
                </td>
                <td class="text-center status" >
                    <span th:if="${groomPlace['status']}==1" class="label label-info">正常</span>
                    <span th:if="${groomPlace['status']}==2" class="label label-danger">冻结</span>
                </td>
                <td class="text-center">
                    <a href="javascript:void(0);" id="lookGroomPlace" th:attr="data-id=${groomPlace['id']}" class="c-master fs14" data-toggle="tooltip" data-placement="bottom" data-original-title="查看"><i class="fa fa-eye"></i></a>
                    <a th:if="${groomPlace['status']}==1" href="javascript:void(0);" class="c-master fs14 ml5 unlockAndHistory"   th:attr="data-id=${groomPlace['id']},data-status=${groomPlace['status']},id='unlockAndHistory_'+${groomPlace['id']}" data-toggle="tooltip" data-placement="bottom" data-original-title="冻结"><i class="fa fa-unlock-alt"></i></a>
                    <a th:if="${groomPlace['status']}==2" href="javascript:void(0);" class="c-master fs14 ml5 unlockAndHistory"   th:attr="data-id=${groomPlace['id']},data-status=${groomPlace['status']},id='unlockAndHistory_'+${groomPlace['id']}"  data-toggle="tooltip" data-placement="bottom" data-original-title="恢复"><i class="fa fa-history"></i></a>
                    <a th:href="@{/admin/op/groom/opGroomPlaceInfoById?id={groomPlaceId}&status={status}(groomPlaceId=${groomPlace['id']},status=2)}" class="c-master fs14 ml5" data-toggle="tooltip" data-placement="bottom" data-original-title="设置">
                        <i class="fa fa-gear"></i>
                    </a>
                    <!--<a href="javascript:void (0);" class="c-master fs14 ml5 deleteGroomPlace" th:attr="data-id=${groomPlace['id']},data-key=${groomPlace['placeKey']},data-type=${groomPlace['dataType']}"    data-toggle="tooltip" data-placement="bottom" data-original-title="清空推荐内容"><i class="fa fa-trash-o"></i></a>-->
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <div data-th-replace="layout/adminPage"></div>
</div>
